﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0044)http://localhost:8080/HouseRent/page/add.jsp -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>爱家租房 -发布房屋信息</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type><LINK 
rel=stylesheet type=text/css href="../css/style.css">
<META name=GENERATOR content="MSHTML 8.00.7601.17514"></HEAD>
<BODY>
<DIV id=header class=wrap>
<DIV id=logo><IMG src="../images/logo.gif"></DIV></DIV>
<DIV id=regLogin class=wrap>
<DIV class=dialog>
<DL class=clearfix>
  <DT>修改房屋信息</DT>
  <DD class=past>编辑房屋信息</DD></DL>
<DIV class=box>
<FORM id=add_action method=post name=add.action 
action=/house/updateHouse>
<DIV class=infos>
<TABLE class=field>
  <TBODY>
  <TR>
    <input type="hidden" name="id" th:value="${house.id}"/>
    <TD class=field>标　　题：</TD>
    <TD><INPUT id=add_action_title class=text type=text name=title th:value="${house.title}"> </TD></TR>
  <TR>
    <TD class=field>户　　型：</TD>
    <TD><SELECT class=text name=typeId><OPTION selected
        value=1000 th:each="htype:${htypeList}" th:value="${htype.id}"><span th:text="${htype.name}"></span></OPTION></SELECT></TD></TR>
  <TR>
    <TD class=field>面　　积：</TD>
    <TD><INPUT id=add_action_floorage class=text type=text th:value="${house.floorage}"
name=floorage></TD></TR>
  <TR>
    <TD class=field>价　　格：</TD>
    <TD><INPUT id=add_action_price class=text type=text name=price th:value="${house.price}"> </TD></TR>
  <TR>
    <TD class=field>房产证日期：</TD>
    <TD><INPUT class=text type=text name=houseDate></TD></TR>
  <TR>
    <TD class=field>位　　置：</TD>
    <TD>区：<SELECT class=text id="districtId" name=districtId><OPTION selected
        value=1000 th:each="district:${districtList}" th:value="${district.id}"><span th:text="${district.name}"></span></OPTION></SELECT>
      街：<SELECT class=text name=street_id></SELECT> </TD></TR><!--
						<tr>
							<td class="field">坐  标：</td>
							<td><input type="text" class="text" name="point" />
							</td>
						</tr>
						--><!--  <tr>
							<td class="field">Y 坐  标：</td>
							<td><input type="text" class="text" name="point.y" /></td>
						</tr>-->
  <TR>
    <TD class=field>联系方式：</TD>
    <TD><INPUT id=add_action_contact class=text type=text name=contact th:value="${house.contact}"> </TD></TR>
  <TR>
    <TD class=field>详细信息：</TD>
    <TD><TEXTAREA name=description >[(${house.description})]</TEXTAREA></TD></TR></TBODY></TABLE>
<DIV class=buttons><INPUT  value=立即发布 type="submit">
</DIV></DIV></FORM></DIV></DIV></DIV>
<DIV id=footer class=wrap>
<DL>
  <DT>爱家租房 © 2010 北大爱家 京ICP证1000001号</DT>
  <DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD></DL></DIV></BODY></HTML>
<script src="/scripts/jquery-3.5.1.min.js"></script>
<script>
 /* jQuery("#districtId").change(function () {
    var districtId = jQuery(this).val();
    jQuery.ajax({
      //请求的url
      url:"/street/findStreet",
      //是否异步
      async:true,
      //请求的方式
      data: {"districtId":districtId},
      type:"POST",
      //预期的返回类型
      dataType:"json",
      //两个回调函数
      success:function (data){
        //var res = $.parseJSON(data);//把后台传回的json数据解析
        var res = data;
        var option;
        jQuery.each(res,function(i,n){
          //循环，i为下标从0开始，n为集合中对应的第i个对象
          option += "<option value='"+n.id+"'>"+n.name+"</option>"
        });
        jQuery("#street_id").html(option);
      },
      error:function (){
        alert("操作失败")
      }
    })
  })*/
</script>